//
// Created by ziya on 2021/4/28.
//

#ifndef ZIYA_JVM_CPP_COLLECTEDHEAP_H
#define ZIYA_JVM_CPP_COLLECTEDHEAP_H

#include "../adlc/CHeapObj.h"
#include "../utilities/HeapWord.h"
#include "../oops/instanceOopDesc.h"

class CollectedHeap: public CHeapObj {

public:
    static oop obj_allocate(size_t size);

    static HeapWord* common_mem_allocate_init(size_t size);

    static HeapWord* common_mem_allocate_noinit(size_t size);
};

#endif //ZIYA_JVM_CPP_COLLECTEDHEAP_H
